return Class { 
	_name = "Label",
	
	init = function (self, text, x, y, scale)
		self.scale = scale or 1
		self.text, self.x, self.y = text, x, y
		assert(self.text, "no text in label")
		local font = _lg.getFont()
		self.w = font:getWidth(self.text) * self.scale
		self.h = font:getHeight(self.text) * self.scale
		self.x = self.x or _lg.getWidth()/2 + self.w/2
		self.y = self.y or _lg.getHeight()/2 + self.h/2
	end,
	
	is_hovered = _ui("base").is_hovered,
	
	update = function (self)
		--self.x = _lg.getWidth()/2 + self.w/2 * self.scale
		--self.y = _lg.getHeight()/2 + self.h/2 * self.scale
	end,
	
	draw = function (self)
		_lg.print(self.text, self.x, self.y, nil, self.scale, self.scale)
	end,
	
	}
